package com.equdao.car_violation_inquiry.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    SUCCESS(0, "正常"),

    FAIL(1, "失败"),

    MISMATCH(3,"车辆信息错误"),

    ERROR(9, "未知用户"),

    PARAM_ERROR(101, "车牌号错误"),

    PRODUCT_NOT_EXIST(102, "车架号错误"),

    PRODUCT_STOCK_ERROR(103, "发动机号错误"),

    ORDER_NOT_EXIST(104, "车辆信息错误"),

    ORDERDETAIL_NOT_EXIST(105, "车辆已注销"),

    ORDER_STATUS_ERROR(106, "不支持该车型"),

    ORDER_UPDATE_FAIL(401, "账号认证失败"),

    ORDER_DETAIL_EMPTY(402, "账户余额不足"),

    ORDER_PAY_STATUS_ERROR(403, "超出当日查询限制次数"),

    CART_EMPTY(404, "没有使用该接口的权限"),

    ORDER_OWNER_ERROR(405, "ip受限"),

    WECHAT_MP_ERROR(501, "查询超时"),

    WXPAY_NOTIFY_MONEY_VERIFY_ERROR(502, "其他信息错误"),

    ORDER_CANCEL_SUCCESS(503, "接口维护"),

    ORDER_FINISH_SUCCESS(504, "城市未开通"),

    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
